<%@ page import="aiball.Contents" %>



<div class="fieldcontain ${hasErrors(bean: contentsInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="contents.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="16" required="" value="${contentsInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contentsInstance, field: 'parent', 'error')} required">
	<label for="parent">
		<g:message code="contents.parent.label" default="Parent" />
		<span class="required-indicator">*</span>
	</label>
	<g:select optionValue="name" id="parent" name="parent.id" from="${aiball.Contents.list()}" optionKey="id" required="" value="${contentsInstance?.parent?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contentsInstance, field: 'code', 'error')} ">
	<label for="code">
		<g:message code="contents.code.label" default="Code" />
		
	</label>
	<g:textArea name="code" value="${contentsInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contentsInstance, field: 'headline', 'error')} ">
	<label for="headline">
		<g:message code="contents.headline.label" default="Headline" />
		
	</label>
	<g:textField name="headline" value="${contentsInstance?.headline}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contentsInstance, field: 'justCategory', 'error')} ">
	<label for="justCategory">
		<g:message code="contents.justCategory.label" default="Just Category" />
		
	</label>
	<g:checkBox name="justCategory" value="${contentsInstance?.justCategory}" />
</div>

<div class="fieldcontain ${hasErrors(bean: contentsInstance, field: 'userOnly', 'error')} ">
	<label for="userOnly">
		<g:message code="contents.userOnly.label" default="User Only" />
		
	</label>
	<g:checkBox name="userOnly" value="${contentsInstance?.userOnly}" />
</div>

